package com.demo.spring.context.event;

import com.demo.spring.context.ApplicationEvent;
import com.demo.spring.context.ApplicationListener;

// 事件广播器
public interface ApplicationEventMulticaster {

    void addApplicationListener(ApplicationListener<?> listener);

    void removeApplicationListener(ApplicationListener<?> listener);

    void multicastEvent(ApplicationEvent event);
}
